home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1993 / Internet Info CD-ROM (Walnut Creek) (1993).iso / networking / ip / ka9q / MacBMsrc.hqx / Mac bm Project / files.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-06  |  2.4 KB  |  77 lines

  1. /* System-dependent definitions of various files, spool directories, etc */
  2. #include <stdio.h>
  3. #include "global.h"
  4. /*#include "bm.h"*/
  5. #if    (defined(LATTICE) || defined(MAC))
  6. /* These compilers require special open modes when reading binary files
  7.  * 
  8.  * "The single most brilliant design decision in all of UNIX was the
  9.  * choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
  10.  *
  11.  * "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
  12.  * should be shot!" -- P. Karn's corollary to O'Dells' declaration
  13.  *
  14.  * Index definitions for this array are in global.h
  15.  */
  16. char *binmode[] = {
  17.     "rb",    /* Read binary */
  18.     "wb"    /* Write binary */
  19. };
  20. #else
  21. /* fopen modes for binary files under Aztec -- same as UNIX */
  22. char *binmode[] = {
  23.     "r",    /* Read */
  24.     "w"    /* Write */
  25. };
  26. #endif
  27.  
  28. #ifdef    MSDOS
  29. char startup[] = "/autoexec.net";    /* Initialization file */
  30. char userfile[] = "/ftpusers";    /* Authorized FTP users and passwords */
  31. char hosts[] = "/hosts.net";    /* Network host table */
  32. char mailspool[] = "/spool/mail";    /* Incoming mail */
  33. char maildir[] = "/spool/mail/";    /* Incoming mail */
  34. char mailqdir[] = "/spool/mqueue/";        /* Outgoing mail spool */
  35. char mailqueue[] = "/spool/mqueue/*.wrk";    /* Outgoing mail work files */
  36. char routeqdir[] = "/spool/rqueue";        /* queue for router */
  37. char bmrc[] = "/bm.rc";
  38. char savebox[] = "mbox";
  39. #endif
  40.  
  41. #ifdef    UNIX
  42. char startup[] = "./startup.net";    /* Initialization file */
  43. char config[] = "./config.net";    /* Device configuration list */
  44. char userfile[] = "./ftpusers";
  45. char hosts[] = "./hosts.net";
  46. char mailspool[] = "/usr/spool/mail";
  47. char maildir[] = "/usr/spool/mail/";
  48. char mailqdir[] = "/usr/spool/mqueue/";
  49. char mailqueue[] = "/usr/spool/mqueue/*.wrk";
  50. char routeqdir[] = "/spool/rqueue";        /* queue for router */
  51. char bmrc[] = "./bm.rc";
  52. char savebox[] = "mbox";
  53. #endif
  54.  
  55. #ifdef    AMIGA
  56. char startup[] = "TCPIP:net.start";
  57. char config[] = "TCPIP:config.net";    /* Device configuration list */
  58. char userfile[] = "TCPIP:ftpusers";
  59. char hosts[] = "TCPIP:hosts.net";
  60. char mailspool[] = "TCPIP:spool/mail";
  61. char maildir[] = "TCPIP:spool/mail/";
  62. char mailqdir[] = "TCPIP:spool/mqueue/";
  63. char mailqueue[] = "TCPIP:spool/mqueue/*.wrk";
  64. char routeqdir[] = "TCPIP:spool/rqueue";        /* queue for router */
  65. char bmrc[] = "TCPIP:bm.rc";
  66. char savebox[] = "mbox";
  67. #endif
  68.  
  69. #ifdef    MAC
  70. char mailspool[256] ;
  71. char mailqdir[256] ;
  72. char alias[256] ;
  73. char applroot[256];
  74. char temppath[256]; /* temp files folder */
  75. char dirbm[256];    /* dir temp file */
  76. #endif
  77.